<?php


namespace common\validate;


class MotionCaptureData extends BaseValidate
{
    public $rule = [];

    // Fields 验证场景定义
    public function sceneFields()
    {
        return $this;
    }


    public function sceneSaveMotionCaptureData()
    {
        return $this->append('data.motion_capture_data', 'require')
            ->append('data.motion_capture_data.name', 'require')
            ->append('data.motion_capture_data.type', 'in:camera,role')
            ->append('data.motion_capture_data_relation', 'require|array');
    }

    public function sceneSaveMotionCaptureDataRelation()
    {
        return $this->append('entity_id', 'require');
    }

    public function sceneGetMotionCaptureDataList()
    {
        return $this->append('param.filter', 'require');
    }
}
